package model;

/**
 * 
 * @author Group 20
 *
 */

public class ToBank extends Expense 
{
	/**
	 * Constructor
	 * @param description: Card description
	 * @param pay: Card pay value
	 */
	public ToBank(String description, int pay) {
		super(description, pay);
	}

	/**
	 * toString Method
	 */
	@Override
	public String toString() {
		return "ToBank ["+super.toString() +"]";
	}

	/**
	 * Returns the amount the player has to pay
	 */
	@Override
	public int calculateExpense() {
		return pay;
	}

	
}
